bitkeeper revision 1.1159.238.7 (4200f09cegOci_6ijw2B4UT2y9odbA)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Wed, 2 Feb 2005 15:24:12 +0000 (15:24 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Wed, 2 Feb 2005 15:24:12 +0000 (15:24 +0000)
Enforce alignment of i387 data
Signed-off-by: ian.pratt@cl.cam.ac.uk
xen/include/asm-x86/processor.h

index 03db60021c39b63894304e066dc2546acf53af8b..f0cbca1ab8b38a0c1ae3952048dc8a9cdc65c3c0 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/pdb.h>
 #include <xen/config.h>
 #include <xen/spinlock.h>
+#include <xen/cache.h>
 #include <asm/vmx_vmcs.h>
 #include <public/xen.h>
 #endif
@@ -412,11 +413,11 @@ struct thread_struct {
      * for segment registers %ds, %es, %fs and %gs:
      *         %ds, %es, %fs, %gs, %eip, %cs, %eflags [, %oldesp, %oldss]
      */
-    unsigned long event_selector;    /* 08: entry CS  */
-    unsigned long event_address;     /* 12: entry EIP */
+    unsigned long event_selector;    /* entry CS  */
+    unsigned long event_address;     /* entry EIP */
 
-    unsigned long failsafe_selector; /* 16: entry CS  */
-    unsigned long failsafe_address;  /* 20: entry EIP */
+    unsigned long failsafe_selector; /* entry CS  */
+    unsigned long failsafe_address;  /* entry EIP */
 
     /* Bounce information for propagating an exception to guest OS. */
     struct trap_bounce trap_bounce;
@@ -435,7 +436,7 @@ struct thread_struct {
 #ifdef CONFIG_VMX
     struct arch_vmx_struct arch_vmx; /* Virtual Machine Extensions */
 #endif
-};
+} __cacheline_aligned;
 
 #define IDT_ENTRIES 256
 extern idt_entry_t idt_table[];